package com.xu.rag.service;

import com.xu.rag.pojo.result.ChunkResult;
import com.xu.rag.pojo.result.EmbeddingResult;

import java.util.List;

/**
 * @Author: xdl
 * @CreateTime: 2025-01-13 23:21
 * @Description:
 */
public interface LlmService {
    String chat(String prompt);
    double[] sentence(String sentence);
    List<EmbeddingResult> embedding(List<ChunkResult> chunkResults);
    EmbeddingResult embedding(ChunkResult chunkResult);

    String functionCall(String message) throws Exception;
}
